import { postRequest } from "@/utils/request";
/**
 * 根据学院名称查询学院信息
 */
export function selectCollegeApi(data) {
    return postRequest(
        "/college/selectCollege",
        data
    );
}

/**
 * 根据学院名称和查询学院信息
 */
export function selectCollegeByCodeAndNameApi(data) {
    return postRequest(
        "/college/selectCollegeByCodeAndName",
        data
    );
}

/**
 * 删除学院
 */
export function deleteCollegeApi(data) {
    return postRequest(
        "/college/deleteCollege",
        data
    );
}


/**
 * 修改学院信息
 */
export function updateCollegeApi(data) {
    return postRequest(
        "/college/updateCollege",
        data
    );
}

/**
 * 新增学院
 */
export function insertCollegeApi(data) {
    return postRequest(
        "/college/insertCollege",
        data
    );
}